#include <iostream>

using namespace std;

int main(int argc, char* argv[])
{
	int collection = 1;
	int n1, n2, n3, n4, n5, n6;
	cin>>n1>>n2>>n3>>n4>>n5>>n6;
	while (n1 != 0 || n2 != 0 || n3 != 0 || n4 != 0 || n5 != 0 || n6 != 0) {
		int totalValue = n1 * 1 + n2 * 2 + n3 * 3 + n4 * 4 + n5 * 5 + n6 * 6;
		if (totalValue % 2 == 1) {
			cout<<"Collection #"<<collection<<":"<<endl;
			cout<<"Can't be divided."<<endl;
			cout<<endl;
		} else {

		}

		cin>>n1>>n2>>n3>>n4>>n5>>n6;
		++collection;
	}
	return 0;
}